const setTime = (obj) => {
    const d = new Date(obj)
    const p = (s) => {
        return s < 10 ? '0' + s : s
    }
    const time = d.getFullYear() + '/' + d.getMonth() + '/' + d.getDate() + ' ' + d.getHours() + ':' + p(d.getMinutes()) + ':' + p(d.getSeconds())
    return time
}
export default setTime